package ferp.android.dialogs;

import android.content.Context;
import android.text.Html;
import android.widget.TextView;
import ferp.android.GUI;
import ferp.android.R;

/**
 * User: olegs
 * Date: 30/05/12 13:41
 */
public class MessageDialog extends YesNoDialog
{
  public MessageDialog(Context context, Listener listener, int requestCode)
  {
    super(context, requestCode, R.layout.dialog_message, listener);

    // resolve message text view
    message = (TextView)findViewById(R.id.dlg_message_text);
    message.setTypeface(GUI.Font.BOLD);
  }

  public void set(int title, String message)
  {
    this.title.setText(title);
    this.message.setText(Html.fromHtml(message));
  }

  // widgets
  private final TextView message;
}
